﻿<DemoPageSectionComponent Id="DialogsAndWindows-Popup-Overview" ShowSizeMode="true">
    <ChildContentWithParameters Context="Params">
        <div class="target-container" @onclick="@(() => PopupVisible = true)">
            <p class="target-caption">CLICK TO SHOW A POP-UP WINDOW</p>
        </div>

        <DxPopup
            HeaderText="Popup"
            @bind-Visible="@PopupVisible"
            BodyText="@Constants.Text"
            SizeMode="Params.SizeMode">
        </DxPopup>
    </ChildContentWithParameters>

    @code {
        bool PopupVisible { get; set; } = false;
    }

</DemoPageSectionComponent>
